﻿using System;

namespace DesignPattern.com.state {
    public class StateC :State{
        public StateC(Context con) : base(con){ }
        public override void Handle(int val){
            Console.WriteLine("stateC-handle="+val);
            if (val > 30){
                con.setState(new StateA(con));
            }
        }
    }
}